package com.web;

import com.service.UserInfoService;
import com.service.impl.UserInfoServiceImpl;

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.IOException;

public class MedicalServletDelete extends HttpServlet {

    private UserInfoService userInfoService = new UserInfoServiceImpl();

    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        String id = request.getParameter("id");
        userInfoService.deleteOrderInfoById(Integer.valueOf(id));
        request.getRequestDispatcher("/medicalServletList").forward(request, response);
    }

}
